# -*- coding: utf-8 -*-
# @Author: Wen Xuejia
# @Date:   2018-06-05 14:59:09
# @Last Modified by:   Wen Xuejia
# @Last Modified time: 2018-06-05 15:01:17
HOSTNAME = '10.0.1.224'  # 主机ip
PORT = '3306'  # 端口
DATABASE = 'wxj'  # 数据库名
USERNAME = 'dev'  # mysql用户名
PASSWORD = '123456'  # mysql用户密码
CHARSET = 'charset=utf8'  # 编码
DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?{}'.format(
    USERNAME, PASSWORD, HOSTNAME, PORT, DATABASE, CHARSET)


class Dev(object):
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = DB_URI
    SQLALCHEMY_TRACK_MODIFICATIONS = True
